package com.loop.animalTest;

public class AnimalTest {
    public static void main(String[] args) {
        AnimalTest test = new AnimalTest();
        Dog dog = new Dog();
        Animal sheep = new Sheep();
        test.feed(new Cat());
        test.feed(dog);
        test.feed(sheep);
    }
    public void feed(Animal animal){
        animal.eat();
    }
}
